Getwanip is a program that will not only return your public IP address but allow you to create scripts that will have the ability to pull ip address.

The command line options are as follows

getwanip [http://www.domainname.com/ip.php] [/#]

By default getwanip uses my personal company's website http://getwanip.com/ip.php to get your ip address.   But you use the following PHP code to create your own ip.php page and place it on your domain.  Then use my program to get your IP address.  

Make sure that the only code you have on the page is the following code.  No other HTML or scripts
-------------------------------------------------------------------------------

<?
$ipa = getenv ("REMOTE_ADDR");
echo "$ipa";
?>

-------------------------------------------------------------------------------

To allow you flexablility in script file you can use /# options to define the octict you wish to return.  For example if your IP address is 124.249.12.1 then if you use the getwanip /1 then %errorlevel% will be set to 124 and if you use the command getwanip /2 then %errorlevel% will be set to 249 and so on.  By default errorlevel will be the 4th octict.

To check out my other programs or see if there is an update to this one.   Go to my website at.

http://bobby.rkgage.net/download

Copyright 2007 by Robert F Gage II




-----------------------


If you wish I have also created publiship.bat that you can schedule task and it will publish your ip on your website for you.  Just edit publish.bat with a text editor and change the nedded entries to reflect your server settings and away you go.   The replac32.exe is required to make it work.
